package com.yangff.entity.product.entity.productentity;

import com.yangff.entity.product.entity.Financialproduct;
import com.yangff.utils.MathUtil;

import java.util.Random;

//货币
public class CurrencyEntity extends Financialproduct {

    public CurrencyEntity(){
        super();
        Random random = new Random();
        this.type = "货币型";

        this.mu = MathUtil.getRandomNumberInDoubleRange(0.001,0.03);
        this.sigma = MathUtil.getRandomNumberInDoubleRange(0.005,0.015);
        this.riskLevel = MathUtil.getRiskLevel(sigma , 0.005 , 0.015);
    }
}
